.product {
    a {
        position: relative;
        img {
            width: 140px;
            height: 180px;
            border: 1px solid red;
            box-sizing: border-box;
        }
        .text1 {
            color: red;
            position: absolute;
            top: 31px;
            right: -7px;
            color: black;
            display: block;
            width: 300px;
        }
        .text2 {
            position: absolute;
            top: 83px;
            right: 24px;
            color: red;
        }
        .text3 {
            position: absolute;
            top: 138px;
            right: 206px;
            color: gray;
        }
        .text4 {
            position: absolute;
            top: 138px;
            right: 106px;
            color: gray;
        }
    }
}

footer {
    .before {
        background-color: red;
    }
}